﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyWeb.Data;
using System.Data;

namespace MyWeb.Business
{
    public class CustomerService
    {
        public static CustomerController db = new CustomerController();

        #region[Customer_Insert]
        public void Customer_Insert(CustomerInfo data)
        {
            db.Customer_Insert(data);
        }
        #endregion

        #region[Customer_Update]
        public void Customer_Update(CustomerInfo data)
        {
            db.Customer_Update(data);
        }
        #endregion

        #region[Customer_Delete]
        public void Customer_Delete(string Id)
        {
            db.Customer_Delete(Id);
        }
        #endregion

        #region[Customer_GetByAll]
        public DataTable Customer_GetByAll()
        {
            return db.Customer_GetByAll();
        }
        #endregion

        #region[Customer_GetById]
        public DataTable Customer_GetById(string Id)
        {
            return db.Customer_GetById(Id);
        }
        #endregion

        #region[Customer_GetByTop]
        public DataTable Customer_GetByTop(string Top, string Where, string Order)
        {
            return db.Customer_GetByTop(Top, Where, Order);
        }
        #endregion
    }
}
